package exo1;
/**
 * 
 */

/**
 * @author fcamps
 *
 */
public abstract class Figure {
	
	static int nbFigure=0;
	
	public static int getNbFigure() {
		return nbFigure;
	}
	
	protected void finalize() {
		
		nbFigure--;
	
		System.out.println("nb figure = " + nbFigure);
	}

	Figure()
	{
		nbFigure++;
	}
	
	public abstract float perimetre();
	public abstract void afficherCaracteristiques();

}
